package src.lab02.test03;

import java.util.Scanner;

/**
 * Created by 林云志 on 2017/10/14.
 */
public class Student {
    Scanner scanner = new Scanner(System.in);
    //属性
    int compter;
    int math;
    int English;
    //方法
    int getMath() {
        System.out.println("请输入数学成绩");
        math = scanner.nextInt();
        return math;
    }
    int getCompter(){
        System.out.println("请输入计算机成绩");
        compter = scanner.nextInt();
        return compter;
    }
    int getEnglish() {
        System.out.println("请输入英语成绩");
        English = scanner.nextInt();
        return English;
    }
}
